package com.study.cloudAlibaba.service;

import com.study.springcloud.entities.CommonResult;
import com.study.springcloud.entities.Payment;
import org.springframework.stereotype.Component;

/**
 * @author lzc
 * @date 2022/7/29 11:15
 */
@Component
public class PaymentFallbackService implements PaymentFeignService {
    @Override
    public CommonResult<Payment> paymentSQL(Long id) {
        return new CommonResult<>(666,"服务降级返回---PaymentFallbackService",new Payment(666L,"ERROR"));
    }
}
